package com.edu.neusoft.student.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.edu.neusoft.student.mapper.CarMapper;
import com.edu.neusoft.student.domain.Car;

import java.util.List;

@Service
public class CarService{

    @Resource
    private CarMapper carMapper;

    
    public int deleteByPrimaryKey(Integer carid) {
        return carMapper.deleteByPrimaryKey(carid);
    }

    
    public int insert(Car record) {
        return carMapper.insert(record);
    }

    
    public int insertSelective(Car record) {
        return carMapper.insertSelective(record);
    }

    
    public Car selectByPrimaryKey(Integer carid) {
        return carMapper.selectByPrimaryKey(carid);
    }

    
    public int updateByPrimaryKeySelective(Car record) {
        return carMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Car record) {
        return carMapper.updateByPrimaryKey(record);
    }

    public List<Car> selectAllCars() {return carMapper.selectAllCars();}
}
